<? include("../include/session.php");
	include("../include/database.php"); ?>
<?
	// Opvragen van order informatie.
	$sOrderId = $_SESSION['orderid']; // Uniek order ID
	$sOrderDescription = 'Order omschrijving'; // Omschrijving
	$fOrderAmount = mysql_query("SELECT totaalbedrag FROM Order WHERE Order.ordernr = ".$_SESSION['orderid'].""); // Bedrag (in decimaal!!)

?>
<!DOCTYPE PHP>
<html>
	<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>iDEAL - Stap 1: Samenstellen van een order</title>
	</head>
	<body>
		<form action="step2.php" method="post">
			<h1>Uw iDEAL transactie</h1>
			<p><b>Order ID:<br /><input type="text" name="order_id" size="30" value="<?php echo $sOrderId; ?>"><br /><br />Order omschrijving:<br /><textarea rows="8" name="order_description" cols="40"><?php echo $sOrderDescription; ?></textarea><br /><br />Order bedrag:<br /><input name="order_amount" size="30" type="text" value="<?php echo number_format($fOrderAmount, 2, ',', ''); ?>"> (EUR)<br /><br /><br /><input name="_submit" type="submit" value="verder &gt;&gt;"></b></p>

			<p><a href="http://www.ideal-simulator.nl">www.ideal-simulator.nl</a></p>
		</form>
	</body>
</html>